auto merge of #604 : klutzy/cargo/win-make-install, r=alexcrichton
authorbors <bors@rust-lang.org>
Fri, 19 Sep 2014 18:14:37 +0000 (18:14 +0000)
committerbors <bors@rust-lang.org>
Fri, 19 Sep 2014 18:14:37 +0000 (18:14 +0000)
commitde4a7a9050c5d4ebf1b665165eab9d16ddadde55
tree3c4c1e4387b8f7b69856e10d69d5137fd1b95a78
parent976b5978da70f59c9261467adf1119ed77842f27
parent7c9080e2bd3f1008cef924b757d6faba657376ba
auto merge of #604 : klutzy/cargo/win-make-install, r=alexcrichton

Since `Makefile` passes `--destdir="$$(DESTDIR)/"` to `install.sh`,
`make install` tries to install libraries to
`$CFG_DESTDIR$CFG_PREFIX/$CFG_LIBDIR_RELATIVE` which is usually
`//path/to/usr/$CFG_LIBDIR_RELATIVE`.

The POSIX spec [1] states that if path begins with `//` it is
implementation-defined.
Usual systems treat them as normal abaolute path, but cygwin and MSYS
does not! They use `//hostname/path` syntax for network drives.
This caused `make install` issue on Windows.

This patch removes `/` of destdir to solve the issue.

[1]: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_12